#!/usr/bin/python
# -*- coding:utf-8 -*-


# 性别
MALE = 1
FEMALE = 2
OTHER_SEX = 99

SEX_DICT = {
    MALE: '男',
    FEMALE: '女',
    OTHER_SEX: '其他',
}


# 文章状态
PUBLISHED_BLOG = 1  # 已发布
DRAFT_BLOG = 2  # 草稿
TRASH_BLOG = 3  # 回收站


BLOG_STATUS_DICT = {
    DRAFT_BLOG: '草稿',
    PUBLISHED_BLOG: '已发布',
    TRASH_BLOG: '回收站',
}

# 留言种类
BLOG_COMMENT = 1
USER_COMMENT = 2
OTHER_COMMENT = 99

COMMENT_KIND_DICT = {
    BLOG_COMMENT: '博文评论',
    USER_COMMENT: '博主留言',
    OTHER_COMMENT: '其他留言',
}

# 文件类型
IMAGE_FILE = 1
OTHER_FILE = 99

FILE_KIND_DICT = {
    IMAGE_FILE: '图片',
    OTHER_FILE: '其他文件',
}

# 附件分类
AVATAR_ATTACHMENT = 1
BLOG_ATTACHMENT = 2
OTHER_ATTACHMENT = 99

ATTACHMENT_KIND_DICT = {
    AVATAR_ATTACHMENT: '头像',
    BLOG_ATTACHMENT: '博文附件',
    OTHER_ATTACHMENT: '其他附件',
}